/****************************************************************
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.     *
 *                                                              *
 * Copyright (C) 2009, Jun Li All rights reserved.              *
 * More about Jun{                                              *
 * Homepage: http://www.jpxx.org/                               *
 * Email   : lijun@jpxx.org                                     *
 * }                                                            *
 * SOFTWARE ENGINEERING COLLEGE OF SICHUAN UNIVERSITY           *
 *                                                              *
 ****************************************************************/
package org.jpxx.sec.core.model;

import java.util.Date;

/**
 * 管理员对象。
 * 
 * @author Jun Li lijun@jpxx.org (http://www.jpxx.org)
 * @version 1.0.0 $ org.jpxx.sec.core.model.AdminBean.java $ $ Date: 2009-5-9 $
 */
public class AdminDO {

	private int id;
	/**
	 * 管理权限ID
	 */
	private int privilegeID;

	/**
	 * 登陆名称
	 */
	private String username;

	/**
	 * 登陆密码
	 */
	private String password;

	/**
	 * 邮件账号
	 */
	private String email;
	/**
	 * 是否继承组的权限
	 */
	private boolean isInheritor;

	/**
	 * 验证码，不是临时验证码！用于修改密码系统自动产生的验证码，他将发送邮箱。
	 */
	private String authCode;

	/**
	 * 登陆次数
	 */
	private int loginTimes;

	/**
	 * 最后登录日期
	 */
	private Date loginDate;

	/**
	 * 是否被锁定
	 */
	private boolean isLocked;

	/**
	 * 锁定日期
	 */
	private Date lockDate;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the privilegeID
	 */
	public int getPrivilegeID() {
		return privilegeID;
	}

	/**
	 * @param privilegeID
	 *            the privilegeID to set
	 */
	public void setPrivilegeID(int privilegeID) {
		this.privilegeID = privilegeID;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the isInheritor
	 */
	public boolean isInheritor() {
		return isInheritor;
	}

	/**
	 * @param isInheritor
	 *            the isInheritor to set
	 */
	public void setInheritor(boolean isInheritor) {
		this.isInheritor = isInheritor;
	}

	/**
	 * @return the authCode
	 */
	public String getAuthCode() {
		return authCode;
	}

	/**
	 * @param authCode
	 *            the authCode to set
	 */
	public void setAuthCode(String authCode) {
		this.authCode = authCode;
	}

	/**
	 * @return the loginTimes
	 */
	public int getLoginTimes() {
		return loginTimes;
	}

	/**
	 * @param loginTimes
	 *            the loginTimes to set
	 */
	public void setLoginTimes(int loginTimes) {
		this.loginTimes = loginTimes;
	}

	/**
	 * @return the loginDate
	 */
	public Date getLoginDate() {
		return loginDate;
	}

	/**
	 * @param loginDate
	 *            the loginDate to set
	 */
	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	/**
	 * @return the isLocked
	 */
	public boolean isLocked() {
		return isLocked;
	}

	/**
	 * @param isLocked
	 *            the isLocked to set
	 */
	public void setLocked(boolean isLocked) {
		this.isLocked = isLocked;
	}

	/**
	 * @return the lockDate
	 */
	public Date getLockDate() {
		return lockDate;
	}

	/**
	 * @param lockDate
	 *            the lockDate to set
	 */
	public void setLockDate(Date lockDate) {
		this.lockDate = lockDate;
	}
}

